package org.poem.result;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author sangfor
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "分页结果")
public class PageableResult<T> {

    /**
     * 总数
     */
    @ApiModelProperty("总数")
    private long total;
    /**
     * 每页显示条数，默认 10
     */
    @ApiModelProperty("每页显示条数")
    private long size;
    /**
     * 当前页
     */
    @ApiModelProperty("当前页")
    private long current;

    @ApiModelProperty("数据")
    private List<T> voList;
}